package com.ruoyi.project.good.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品图片对象 goods_photo
 * 
 * @author ruoyi
 * @date 2020-07-01
 */
public class GoodsPhoto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品图片ID */
    private Long photoId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String url;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 1删除 */
    @Excel(name = "1删除")
    private Integer isDel;

    public void setPhotoId(Long photoId) 
    {
        this.photoId = photoId;
    }

    public Long getPhotoId() 
    {
        return photoId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("photoId", getPhotoId())
            .append("goodsId", getGoodsId())
            .append("url", getUrl())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
